﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.Common.News.NewsContentComment
{
    /// <summary>
    /// 新闻评价
    /// </summary>
    public class NewsCommentRequestDto
    {
        /// <summary>
        /// 评论内容
        /// </summary>
        [Display(Name = "评论内容")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Comment { get; set; }

        /// <summary>
        /// 用户Id(在册用户)
        /// </summary>
        [Display(Name = "用户Id")]
        public long? UserId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [Display(Name = "用户名")]
        public string UserName { get; set; }

        /// <summary>
        /// 是否匿名
        /// </summary>
        [Display(Name = "是否匿名")]
        public bool IsAnonymous { get; set; }
        /// <summary>
        /// 父级评论Id
        /// </summary>
        public long? ParentCommentId { get; set; }
    }
}
